<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>断点</title>
		<script>
			var b=["apple","Qiezi","huanggua","ToMAto","BIG VEGETABLES"];
			var count=0;
			for(let i of b){
				if(i.indexOf("a")>=0||i.indexOf("A")>=0)
				  count++;
			}
			console.log("含有A或者a有",count,"个");
		</script>
	</head>
	<body>
	</body>
</html>